//
//  BaseDatabase.h
//  yuikemall
//
//  Created by Gang.Wang on 12-5-18.
//  Copyright (c) 2012年 yuike. All rights reserved.
//

#import <Foundation/Foundation.h>

@class EntityManager;
@interface BaseDatabase : NSObject
{
    EntityManager *entityManager;

    BOOL bInited;
    
    NSString * version;
    NSString * name;
    
    NSDate * date;
    NSString * discription;
}

@property (nonatomic, strong) EntityManager *entityManager;
@property (nonatomic, assign) BOOL bInited;

@property (nonatomic, strong) NSString *version;
@property (nonatomic, strong) NSString *name;

@property (nonatomic, strong) NSDate *date;
@property (nonatomic, strong) NSString * discription;

- (id) initWithDataBasePath:(NSString *) databasePath;

- (BOOL) privateInit;

- (NSArray *) allRecords:(NSString *) className;
@end
